package com.example.edwincompose.feature.splash

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable

const val SPLASH_ROUTE="splash"



fun NavGraphBuilder.splashScreent(toMain:()->Unit={},){
    //这句代码是什么意思？
    composable(SPLASH_ROUTE) {
        SplashRoute(
            toMain =toMain
        )
    }
}